package com.mjk.common.core.dcc;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

@Getter
@Configuration
@ConditionalOnProperty(value="bee.zk.address")
public class DccProperty {
	@Value(value="${bee.zk.address}")
	private String zkHost;
	
	private int connectTimeout = 3000;

    public void setZkHost(String zkHost) {
		this.zkHost = zkHost;
	}

    public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}
}
